#include "smart_car.h"

SmartCar::SmartCar() {
    // Initialize default values
    chassisModel = "SCOUT MINI";
    wheelBase = 451;
    trackWidth = 490;
    groundClearance = 115;
    turningRadius = 0.0;
    driveType = "四轮四驱";
    maxRange = "10KM";
    tireCount = 4;
    tireModel = "公路轮、麦克纳姆轮";
    tireSize = 175;
    agxCount = 1;
    agxModel = "AGX Xavier";
    aiPerformance = "32 TOPS";
    cudaCores = 512;
    tensorCores = 64;
    gpuMemorySize = 32;
    memorySize = 32;
    cameraCount = 1;
    cameraModel = "RealSense D435i";
    cameraType = "D430";
    resolutionWidth = 1920;
    resolutionHeight = 1080;
    rgbFrameRate = 30;
    fovWidth = 87;
    fovHeight = 58;
    depthFrameRate = 90;
    lidarCount = 1;
    lidarModel = "RS-Helios-16p";
    lidarChannelCount = 16;
    lidarRange = 100.0;
    powerConsumption = 8.0;
    gyroscopeCount = 1;
    gyroscopeModel = "CH110";
    gyroscopeVendor = "NXP";
    displayCount = 1;
    displaySize = "11.6";
    displayModel = "super";
    batteryCount = 1;
    batteryParams = "24V/15Ah";
    supplyVoltage = 24.0;
    chargingTime = 2.0;
}

void SmartCar::assignStudent(const std::string& student_id, const std::string& student_name) {
    // Assign student to the car
    this->stuId = student_id;
    this->stuName = student_name;
}
